package com.dys.entity;

import java.util.Date;

/**
 * @Author: 疾风
 * @ClassName: Teacher
 * @Description: 教师实体类
 * @CreateDate: 2024/10/11
 * @Version: v1.0.0
 */
public class Teacher {
    private int tid;
    private String teacherName;
    private String sex;
    private String hobby;
    private Date birthDate;
    private String phone;
    private String teacherDesc;
    private int did;
    private Department department;
    public Teacher() {
    }

    public Teacher(int tid, String teacherName, String sex, String hobby, Date birthDate, String phone, String teacherDesc, int did) {
        this.tid = tid;
        this.teacherName = teacherName;
        this.sex = sex;
        this.hobby = hobby;
        this.birthDate = birthDate;
        this.phone = phone;
        this.teacherDesc = teacherDesc;
        this.did = did;
    }

    public Teacher(String teacherName, String sex, String hobby, Date birthDate, String phone, String teacherDesc, int did) {
        this.teacherName = teacherName;
        this.sex = sex;
        this.hobby = hobby;
        this.birthDate = birthDate;
        this.phone = phone;
        this.teacherDesc = teacherDesc;
        this.did = did;
    }

    public Teacher(int tid, String teacherName, String sex, String hobby, Date birthDate, String phone, String teacherDesc, int did, Department department) {
        this.tid = tid;
        this.teacherName = teacherName;
        this.sex = sex;
        this.hobby = hobby;
        this.birthDate = birthDate;
        this.phone = phone;
        this.teacherDesc = teacherDesc;
        this.did = did;
        this.department = department;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTeacherDesc() {
        return teacherDesc;
    }

    public void setTeacherDesc(String teacherDesc) {
        this.teacherDesc = teacherDesc;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", teacherName='" + teacherName + '\'' +
                ", sex='" + sex + '\'' +
                ", hobby='" + hobby + '\'' +
                ", birthDate=" + birthDate +
                ", phone='" + phone + '\'' +
                ", teacherDesc='" + teacherDesc + '\'' +
                ", did=" + did +
                ", department=" + department +
                '}';
    }
}
